//
//  PublicDetailViewController.m
//  RoadMaintain
//
//  Created by 岳学坤 on 2017/5/23.
//  Copyright © 2017年 岳学坤. All rights reserved.
//

#import "PublicDetailViewController.h"

@interface PublicDetailViewController ()<UIWebViewDelegate>

@end

@implementation PublicDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self resetNav];
    [self setWebData];
}
- (void)resetNav{
    [self setTheBackBtn];
    self.myTitle.text = @"公告详情";
   
}
- (void)setWebData{
    self.webView = [[UIWebView alloc] init];
    self.webView.scrollView.showsVerticalScrollIndicator = NO;
    self.webView.scrollView.showsHorizontalScrollIndicator = NO;
    self.webView.scrollView.bounces = NO;
    self.webView.backgroundColor = Bai_Color;
    self.webView.delegate = self;
    self.webView.scalesPageToFit = YES;
    [self.view addSubview:self.webView];
    [self.webView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_offset(64);
        make.left.right.bottom.mas_offset(0);
    }];
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.url]]];
}
@end
